package com.peter.ai;

import java.io.File;

import com.peter.ai.util.AliyunThread;
import com.peter.ai.util.LiaozhaiFileUtils;

/**
 * Hello world!
 *
 */
public class AppLiaozhai {
	public static void main(String[] args) {
		final String txtDir = "E://text2voice/liaozhai/txt/";
		final String mp3Dir = "E://text2voice/liaozhai/mp3/";
		//LiaozhaiFileUtils.splitFile("E://text2voice/liaozhai/聊斋志异白话精排版.txt", "------,", txtDir);
		File dir = new File(txtDir);
		File[] files = dir.listFiles();

		for (int i = 0; i < 10; i++) {
			Thread thread = new AliyunThread(i, files, mp3Dir,0,490);
			thread.start();
		}

	}
}
